/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package negocio;

/**
 *
 * @author diego
 */
public class Tarifa {

    private Integer id;
    private Fila unaFila;
    private Funcion unaFuncion;
    private Double unPrecio;
    private boolean activa;

    public Tarifa() {
    }

    public Tarifa(Fila unaFila, Funcion unaFuncion,Double unPrecio) {
        
        this.unaFila = unaFila;
        this.unaFuncion = unaFuncion;
        this.unPrecio = unPrecio;
        this.activa = true;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Fila getUnaFila() {
        return unaFila;
    }

    public void setUnaFila(Fila unaFila) {
        this.unaFila = unaFila;
    }

    public Funcion getUnaFuncion() {
        return unaFuncion;
    }

    public void setUnaFuncion(Funcion unaFuncion) {
        this.unaFuncion = unaFuncion;
    }

    public Double getUnPrecio() {
        return unPrecio;
    }

    public void setUnPrecio(Double unPrecio) {
        this.unPrecio = unPrecio;
    }

    public boolean isActiva() {
        return activa;
    }
    public boolean getActiva(){
        return activa;
    }

    public void setActiva(boolean activa) {
        this.activa = activa;
    }
    
    public void habilitar(){
        this.activa = true;
    }
    
    public void deshabilitar(){
        this.activa = false;
    }

    
    
    
}
